package com.demo.fulllink.service;

import com.demo.fulllink.module.po.AccountPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.Serializable;

@FeignClient(name = "storage-service", path = "/storage/account")
public interface StorageAccountService {
    
    @RequestMapping("/findByID/{accountId}")
    public AccountPO findByID(@PathVariable("accountId") Serializable accountId);
    
    @RequestMapping("/findByName/{accountName}")
    public AccountPO findByName(@PathVariable("accountName") Serializable accountName);
}
